package com.ym.config;

import com.baidu.aip.face.AipFace;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("baidu.face")
@Data
public class BaiduFaceConfig {
    private String appId;
    private String apiKey;
    private String secretKey;
    private String groupId;

    @Bean
    public AipFace getAipFace(){
        return new AipFace(appId,apiKey,secretKey);
    }
}
